package com.sinochem.iot.rule.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TriggerExample {
    /**
     * t_trigger
     */
    protected String orderByClause;

    /**
     * t_trigger
     */
    protected boolean distinct;

    /**
     * t_trigger
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated
     */
    public TriggerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * t_trigger null
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTriNameIsNull() {
            addCriterion("tri_name is null");
            return (Criteria) this;
        }

        public Criteria andTriNameIsNotNull() {
            addCriterion("tri_name is not null");
            return (Criteria) this;
        }

        public Criteria andTriNameEqualTo(String value) {
            addCriterion("tri_name =", value, "triName");
            return (Criteria) this;
        }
        public Criteria andUserNameEqualTo(String value) {
            addCriterion("username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andTriNameNotEqualTo(String value) {
            addCriterion("tri_name <>", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameGreaterThan(String value) {
            addCriterion("tri_name >", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameGreaterThanOrEqualTo(String value) {
            addCriterion("tri_name >=", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameLessThan(String value) {
            addCriterion("tri_name <", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameLessThanOrEqualTo(String value) {
            addCriterion("tri_name <=", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameLike(String value) {
            addCriterion("tri_name like", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameNotLike(String value) {
            addCriterion("tri_name not like", value, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameIn(List<String> values) {
            addCriterion("tri_name in", values, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameNotIn(List<String> values) {
            addCriterion("tri_name not in", values, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameBetween(String value1, String value2) {
            addCriterion("tri_name between", value1, value2, "triName");
            return (Criteria) this;
        }

        public Criteria andTriNameNotBetween(String value1, String value2) {
            addCriterion("tri_name not between", value1, value2, "triName");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatIsNull() {
            addCriterion("tri_data_format is null");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatIsNotNull() {
            addCriterion("tri_data_format is not null");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatEqualTo(Byte value) {
            addCriterion("tri_data_format =", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatNotEqualTo(Byte value) {
            addCriterion("tri_data_format <>", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatGreaterThan(Byte value) {
            addCriterion("tri_data_format >", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatGreaterThanOrEqualTo(Byte value) {
            addCriterion("tri_data_format >=", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatLessThan(Byte value) {
            addCriterion("tri_data_format <", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatLessThanOrEqualTo(Byte value) {
            addCriterion("tri_data_format <=", value, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatIn(List<Byte> values) {
            addCriterion("tri_data_format in", values, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatNotIn(List<Byte> values) {
            addCriterion("tri_data_format not in", values, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatBetween(Byte value1, Byte value2) {
            addCriterion("tri_data_format between", value1, value2, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDataFormatNotBetween(Byte value1, Byte value2) {
            addCriterion("tri_data_format not between", value1, value2, "triDataFormat");
            return (Criteria) this;
        }

        public Criteria andTriDescIsNull() {
            addCriterion("tri_desc is null");
            return (Criteria) this;
        }

        public Criteria andTriDescIsNotNull() {
            addCriterion("tri_desc is not null");
            return (Criteria) this;
        }

        public Criteria andTriDescEqualTo(String value) {
            addCriterion("tri_desc =", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescNotEqualTo(String value) {
            addCriterion("tri_desc <>", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescGreaterThan(String value) {
            addCriterion("tri_desc >", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescGreaterThanOrEqualTo(String value) {
            addCriterion("tri_desc >=", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescLessThan(String value) {
            addCriterion("tri_desc <", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescLessThanOrEqualTo(String value) {
            addCriterion("tri_desc <=", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescLike(String value) {
            addCriterion("tri_desc like", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescNotLike(String value) {
            addCriterion("tri_desc not like", value, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescIn(List<String> values) {
            addCriterion("tri_desc in", values, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescNotIn(List<String> values) {
            addCriterion("tri_desc not in", values, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescBetween(String value1, String value2) {
            addCriterion("tri_desc between", value1, value2, "triDesc");
            return (Criteria) this;
        }

        public Criteria andTriDescNotBetween(String value1, String value2) {
            addCriterion("tri_desc not between", value1, value2, "triDesc");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeviceCountIsNull() {
            addCriterion("device_count is null");
            return (Criteria) this;
        }

        public Criteria andDeviceCountIsNotNull() {
            addCriterion("device_count is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceCountEqualTo(Integer value) {
            addCriterion("device_count =", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountNotEqualTo(Integer value) {
            addCriterion("device_count <>", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountGreaterThan(Integer value) {
            addCriterion("device_count >", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_count >=", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountLessThan(Integer value) {
            addCriterion("device_count <", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountLessThanOrEqualTo(Integer value) {
            addCriterion("device_count <=", value, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountIn(List<Integer> values) {
            addCriterion("device_count in", values, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountNotIn(List<Integer> values) {
            addCriterion("device_count not in", values, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountBetween(Integer value1, Integer value2) {
            addCriterion("device_count between", value1, value2, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andDeviceCountNotBetween(Integer value1, Integer value2) {
            addCriterion("device_count not between", value1, value2, "deviceCount");
            return (Criteria) this;
        }

        public Criteria andTriCountIsNull() {
            addCriterion("tri_count is null");
            return (Criteria) this;
        }

        public Criteria andTriCountIsNotNull() {
            addCriterion("tri_count is not null");
            return (Criteria) this;
        }

        public Criteria andTriCountEqualTo(Integer value) {
            addCriterion("tri_count =", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountNotEqualTo(Integer value) {
            addCriterion("tri_count <>", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountGreaterThan(Integer value) {
            addCriterion("tri_count >", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("tri_count >=", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountLessThan(Integer value) {
            addCriterion("tri_count <", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountLessThanOrEqualTo(Integer value) {
            addCriterion("tri_count <=", value, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountIn(List<Integer> values) {
            addCriterion("tri_count in", values, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountNotIn(List<Integer> values) {
            addCriterion("tri_count not in", values, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountBetween(Integer value1, Integer value2) {
            addCriterion("tri_count between", value1, value2, "triCount");
            return (Criteria) this;
        }

        public Criteria andTriCountNotBetween(Integer value1, Integer value2) {
            addCriterion("tri_count not between", value1, value2, "triCount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    /**
     * t_trigger
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * t_trigger null
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}